<?php

//////////////////////////////////////// Notifications ////////////////////////////////////////

function gp_notification_box($atts, $content = null, $code) {
    extract(shortcode_atts(array(
		'type' => 'default',
    ), $atts));
    
    if($type == "warning") {
		$type = "notify-warning";
    } elseif($type == "error") {
		$type = "notify-error";    
    } elseif($type == "help") {
		$type = "notify-help";
    } elseif($type == "success") {
		$type = "notify-success";
    } else {
		$type = "notify-default";
    }
    
   return '<div class="notify '.$type.'">'.do_shortcode($content).'</div>';
   
}
add_shortcode("notification", "gp_notification_box");

?>